#ifndef _DOGE_CMD_PARSER_H_
#define _DOGE_CMD_PARSER_H_

#define DOGE_CMD_MAX_LEN         10      /* length of cmd */ 
#define DOGE_CMDS_MAX     20      // 


typedef void (*doge_cmd_cb)(int argc, char **argv);   // char argv[][CMD_ONE_ARG_MAX_LEN]

#define DOGE_CMD_COUNTOF(a) (sizeof(a)/sizeof(a[0]))

typedef struct doge_command {
	char cmd[DOGE_CMD_MAX_LEN];
	doge_cmd_cb cb;
}doge_cmd_t;

void doge_cmd_parse(char *str,  doge_cmd_t *cmds, int cmds_len);

#endif


